import MeetingHeader from '@/components/MeetingHeader'
import WebRecommendBrowser from '@/components/WebRecommendBrowser'
import useInit from '@/hooks/useInit'
import Detail from './content/index'
import { getUrlParams } from '@/utils'
import { detailUrlParam } from './interface'

const data: detailUrlParam = {
	meeting_moid: getUrlParams('meetingMoid') ?? '',
	regularMeetingMoid: getUrlParams('regularMeetingMoid') ?? '',
}

function App() {
	useInit()
	if (!data.meeting_moid && !data.regularMeetingMoid) {
		return <></>
	}
	return (
		<>
			<WebRecommendBrowser />
			<MeetingHeader tabIndex={1} />
			<Detail data={data}></Detail>
		</>
	)
}
export default App
